#检查两个字符串是否相等
str1 = '编程'
str2 = '语言'
print(f"Is str1 != str2?I predict True.")
print(str1 != str2)

print(f"\nIs str1 == str2? I predict False.")
print(str1 == str2)

#使用lower()
str = 'Python'
print(f"\n{str.lower()}")

#数值测试
a = 10
b = 20
print(f"\n{a == b}")
print(f"\n{a >= b}")
print(f"\n{a <= b}")
print(f"\n{a != b}")
print(f"\n{a > b}")
print(f"\n{a < b}")

#and和or的测试
print(f"\n{a >10 and b>10}")
print(f"\n{a >10 or b>10}\n")

#测定值是否在列表中
fruits =['apple','pear','banana']
print('banana' in fruits)

#测定值是否不在列表中
print('watermelon' in fruits)
